﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MatchedRecently.ascx.cs"
    Inherits="TCKQKL.FrontEnd.Web.Controls.MatchedRecently" %>
<link href="../styles/data.css" rel="stylesheet" type="text/css" />
<%@ Import Namespace="TCKQKL.FrontEnd.DataModel" %>
<%@ Import Namespace="TCKQKL.FrontEnd.Config" %>
<table class="data" style="border: none;">
    <% if (orderMatchedData != null)
           if (orderMatchedData.Count > 0)
           {%>
    <tr>
        <td class="OrderAlertMessageStyle" colspan="8">
            <img alt="purchased" src="./Images/transactionHistory.gif" 
                style="width: 23px; height: 23px" />Lệnh khớp gần đây
        </td>
                <%--<td colspan="5" style="text-align: right; vertical-align: bottom; font-size: 11px;">
            No of line:<asp:DropDownList ID="numberOfMatch" runat="server">
                <asp:ListItem Selected="True">5</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
            </asp:DropDownList>
            From:
            <input type="text" name="matchFrom" maxlength="10" />
            To:
            <input type="text" name="matchTo" maxlength="10" />
        </td>
--%>
    </tr>
    <tr>
        <th class="InnerHeading">
            Order ID
        </th>
        <th class="InnerHeading">
            Order Date
        </th>
        <th class="InnerHeading">
            Side
        </th>
        <th class="InnerHeading">
            Symbol
        </th>
        <th class="InnerHeading">
            Quantity
        </th>
        <th class="InnerHeading">
            Price
        </th>
        <th class="InnerHeading">
            Fee
        </th>
        <th class="InnerHeading">
            Confirm No
        </th>
    </tr>
    <%for (int i = 0; i < orderMatchedData.Count; i++)
      { %>
    <tr>
        <td class="InnerData">
            <%=orderMatchedData[i].orderID%>
        </td>
        <td class="InnerData">
            <%=orderMatchedData[i].transDate.ToString("dd/MM/yyyy")%>
        </td>
        <td class="Master">
            <%=orderMatchedData[i].TransType%>
        </td>
        <td class="Master">
            <%=orderMatchedData[i].stockCode%>
        </td>
        <td class="Master" style="text-align: right">
            <%=String.Format("{0:0,0}", orderMatchedData[i].stockQtty)%>
        </td>
        <td class="Master" style="text-align: right">
            <%=String.Format("{0:0,0}", orderMatchedData[i].price)%>
        </td>
        <td class="Master" style="text-align: right">
            <%=String.Format("{0:0,0}", orderMatchedData[i].feeAmount)%>
        </td>
        <td class="InnerData" style="text-align: right">
            <%=orderMatchedData[i].confirmNo%>
        </td>
    </tr>
    <%}%>
    <%}%>
</table>
